<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditEgresosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditEgresosLabel_id}" for="id" />
                    <h:inputText id="id" value="#{egresosController.selected.id}" title="#{bundle.EditEgresosTitle_id}" required="true" requiredMessage="#{bundle.EditEgresosRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditEgresosLabel_fechaegreso}" for="fechaegreso" />
                    <h:inputText id="fechaegreso" value="#{egresosController.selected.fechaegreso}" title="#{bundle.EditEgresosTitle_fechaegreso}" required="true" requiredMessage="#{bundle.EditEgresosRequiredMessage_fechaegreso}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditEgresosLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{egresosController.selected.valor}" title="#{bundle.EditEgresosTitle_valor}" />
                    <h:outputLabel value="#{bundle.EditEgresosLabel_observaciones}" for="observaciones" />
                    <h:inputText id="observaciones" value="#{egresosController.selected.observaciones}" title="#{bundle.EditEgresosTitle_observaciones}" />
                    <h:outputLabel value="#{bundle.EditEgresosLabel_numerodoc}" for="numerodoc" />
                    <h:selectOneMenu id="numerodoc" value="#{egresosController.selected.numerodoc}" title="#{bundle.EditEgresosTitle_numerodoc}" >
                        <f:selectItems value="#{usuariosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditEgresosLabel_formapago}" for="formapago" />
                    <h:selectOneMenu id="formapago" value="#{egresosController.selected.formapago}" title="#{bundle.EditEgresosTitle_formapago}" required="true" requiredMessage="#{bundle.EditEgresosRequiredMessage_formapago}">
                        <f:selectItems value="#{formaspagoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditEgresosLabel_concepto}" for="concepto" />
                    <h:selectOneMenu id="concepto" value="#{egresosController.selected.concepto}" title="#{bundle.EditEgresosTitle_concepto}" required="true" requiredMessage="#{bundle.EditEgresosRequiredMessage_concepto}">
                        <f:selectItems value="#{conceptosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{egresosController.update}" value="#{bundle.EditEgresosSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditEgresosViewLink}"/>
                <br />
                <h:commandLink action="#{egresosController.prepareList}" value="#{bundle.EditEgresosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditEgresosIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
